<template>
  <div class="nav-bar">
    <van-col @click="goindex" span="8">
      <van-icon size="18px" name="arrow-left" />返回
    </van-col>
    <van-col span="8" style="text-align:center">{{title}}</van-col>
    <van-col span="8"></van-col>
  </div>
</template>
  <script>
export default {
  data() {
    return {};
  },
  methods: {
    goindex() {
      this.$router.go(-1);
    }
  },
  props: ["title"],
  mounted() {}
};
</script>
  <style scoped>
.nav-bar {
  width: 100%;
  min-height: 36px;
  background: #4ce8d3;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 10;
}
.nav-bar i {
  vertical-align: -4px;
}
</style>